﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="BaseMessage.cs" company="Spenta Consulting">
//   (c) Copyright 2011
// </copyright>
// <summary>
//   Base message
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Spenta.StreetCare.Silverlight.MVVM.Messages
{
    #region Using Directives

    using System;

    #endregion

    /// <summary>
    /// Base message
    /// </summary>
    public class BaseMessage
    {
        /// <summary>
        /// Gets or sets the exception.
        /// </summary>
        /// <value>The exception.</value>
        public Exception Exception { get; set; }

        /// <summary>
        /// Gets a value indicating whether this instance is error.
        /// </summary>
        /// <value><c>true</c> if this instance is error; otherwise, <c>false</c>.</value>
        public bool IsError
        {
            get
            {
                return Exception != null;
            }
        }
    }
}
